<?php

namespace app\api\validate;

use think\Validate;

class UserAddress extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'village_id' => 'require|number',
        'detail' => 'require',
        'name' => 'require',
        'gender' => 'require|integer|between:0,1',
        'phone' => 'require|max:11|/^1[3-9]{1}[0-9]{9}$/',
        'is_default' => 'require|integer|between:0,1',
    ];

    protected $message = [

    ];
}